import { get,put, post, postFormData } from './api'

//接口名 接口地址

//·······································农田数据·······································
//作物分布
export const getCropDistribution = data => get('/farmland/getCropDistribution', data)

//在田统计
export const getFieldStatistics = data => get('/farmland/getFieldStatistics', data)

//土地确权
export const getLandApproval = data => get('/farmland/getLandApproval', data)

//确权详细
export const getLandApprovalDetails = data => get('/farmland/getLandApprovalDetails', data)

//确权详细列表
export const getLandApprovalList = data => get('/farmland/getLandApprovalList', data)

//确权分布统计
export const getLandApprovalStatistics = data => get('/farmland/getLandApprovalStatistics', data)

//总耕地统计
export const getPloughStatistics = data => get('/farmland/getPloughStatistics', data)

//总耕地统计(小程序)
export const getCultivatedStatistics = data => get('/farmland/getCultivatedStatistics', data)

//遥感长势监测
export const getRemoteMonitorTotal = data => get('/farmland/getRemoteMonitorTotal', data)

//长势监测->遥感长势监测时间轴
export const getRemoteShaft = data => get('/farmland/getRemoteShaft', data)

//长势监测->获取遥感地块数据
export const getJing = data => get('/farmland/getJingData', data)

//长势监测->通过时间获取全旗图片
export const getImgsByTime = data => get('/farmland/getImgsByTime', data)

//长势监测->通过时间和地块获取遥感图片
export const getImgsByTimeAndPlotId = data => get('/farmland/getImgsByTimeAndPlotId', data)

//长势监测->通过时间获取全旗数据
export const getDataByTime = data => get('/farmland/getDataByTime', data)

//长势监测->通过时间和地块获取遥感数据
export const getDataByTimeAndPlotId = data => get('/farmland/getDataByTimeAndPlotId', data)




//·······································投入品管理·······································
//投入曲线(施肥、施药、播种)
export const getInputCurve = data => get('/system/inputs/getInputCurve', data)

//投入曲线(灌溉、用电)
export const getInputCurveIrrigateElectricity = data => get('/system/inputs/getInputCurveIrrigateElectricity', data)

//年度投入曲线(施肥、施药、播种)
export const getAnnualComparison = data => get('/system/inputs/getAnnualComparison', data)

//年度投入曲线(灌溉、用电)
export const getIrrigationElectricity = data => get('/system/inputs/getIrrigationElectricity', data)

//旗域统计->农业生产四控数据统计
export const getFourControlsStatistics = data => get('/system/inputs/getFourControlsStatistics', data)

//投入品用量地块排行
export const getInputRanking = data => get('/system/inputs/getInputRanking', data)

//投入品用量基地排行
export const getInputRanking2 = data => get('/system/inputs/getInputRanking2', data)



//·······································栽培模式·······································
//栽培模式统计->各区按条件分类
export const getCultivationClassify = data => get('/cultivationPattern/getCultivationClassify', data)

//栽培模式统计->当前种植密度
export const getPlantDensityStatistics = data => get('/cultivationPattern/getPlantDensityStatistics', data)

//栽培模式统计->种植密度统计
export const getPlantDensity = data => get('/plantType/getPlantDensity', data)

//栽培模式统计->实时数据更新(本周)
export const getRealTimeUpdateWeek = data => get('/cultivationPattern/getRealTimeUpdateWeek', data)




//·······································气候适宜度·······································
//灾害防范
export const getClimateDisasterByType = data => postFormData('/climate/getClimateDisasterByType', data)

//实时数据->农事
export const getDecisionFarmWorkByDate = data => get('/climate/getDecisionFarmWorkByDate', data)




//·······································种植类型·······································
//类型统计->各区按条件分类
export const getClassify = data => get('/plantType/getClassify', data)

//地块详情->当前种植品种
export const getCurrentCultivar = data => get('/plantType/getCurrentCultivar', data)

//数据统计->种植品种统计
export const getPlantVarietyStatistics = data => get('/plantType/getPlantVarietyStatistics', data)

//地块详情->地块详情
export const getPlotInfoStatistics = data => get('/plantType/getPlotInfoStatistics', data)




//·······································长势分析·······································
//地块详情->作物长势
export const getCropGrow = data => get('/growth/getCropGrow', data)

//长势分析报告->长势分析报告
export const getDecisionGrowthReportByDate = data => postFormData('/growth/getDecisionGrowthReportByDate', data)

//地块详情->农户推送消息
export const getDecisionPushNewsByPlotId = data => postFormData('/growth/getDecisionPushNewsByPlotId', data)





//·······································中间地块坐标·······································
//根据播种信息查询对应地块信息
export const getPlotCoordinates = data => postFormData('/plotCoordinates/getPlotCoordinates', data)

//地块id获取地块信息
export const getPlotInfoById = data => get('/plotCoordinates/getPlotInfoById', data)




//·······································下拉树数据获取·······································
//获取作物分布下拉
export const getCropPullDown = data => post('/plotCoordinates/getCropPullDown', data)




//·······································天气接口·······································
//获取墨迹鄂托克前旗天气
export const temperatureTrend = data => get('/system/forecastWeatherData/temperatureTrend', data)

//获取格点实时土壤
export const getGridNowSoil = data => get('https://iqq.etkqq.gov.cn/api-prod/system/coordinates/getGridNowSoil', data)

//获取格点实时天气
export const getGridWeather = data => get('/system/data/getGridWeather', data)




//·······································行政区划级联·······································
//获取行政区划级联
export const getAdministrativeDivision = data => get('/system/inputs/getAdministrativeDivision', data)



//·······································博乐·······································
//获取批次列表
export const getPull = data => get('/system/batch/getPullData', data)

//土壤地力数据统计
export const soilFertilityStatistics = data => get('/system/soilData/soilFertilityStatistics', data)

//获取测土历史数据
export const soilHistoricalData = data => get('/system/soilData/soilHistoricalData', data)

//查询测土点位列表
export const pointList = data => get('/system/point/pointList', data)

//地类数据统计
export const pointStatistics = data => get('/system/point/pointStatistics', data)

//查询项目列表
export const tableList = data => get('/system/project/tableList', data)

//项目统计
export const projectStatistics = data => get('/system/project/projectStatistics', data)

//获取地址级联
export const getArea = data => get('/com/getArea', data)

//农业信息统计
export const agriculturalStatistics = data => get('/agri/farmstats/agriculturalStatistics', data)

//种植数据统计
export const plantStatistics = data => get('/agri/farmstats/plantStatistics', data)

//作物分布详情
export const cropDetails = data => get('/agri/farmstats/cropDetails', data)

//设备统计
export const deviceStatistics = data => get('/system/equipment/deviceStatistics', data)

//基础设施统计
export const infrastructure = data => get('/system/equipment/infrastructure', data)

//设备运行日志
export const logList = data => get('/system/log/logList', data)

//获取设备列表
export const equipmentList = data => get('/system/equipment/list', data)

//查询设备点位数据列表
export const equipmentData = data => get('/system/data/equipmentData', data)

//查询附近设备点位数据列表
export const nearestDevice = data => get('/system/data/nearestDevice', data)

//查询当前页面颜色和公共颜色
export const colourList = data => get('/system/colour/colourList', data)

//修改当前页面颜色和公共颜色
export const editColour = data => put('/system/colour', data)

//通过type查询解译指标列表
export const indexList = data => get('/system/index/indexList', data)

//通过type查询遥感影像列表
export const imageList = data => get('/system/img/imageList', data)